package com.hskn.hss.module.menu.service;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hskn.hss.entity.AjaxResult;
import com.hskn.hss.entity.MenuTreeEntity;
import com.hskn.hss.exception.HssException;
import com.hskn.hss.module.menu.entity.SysMenu;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author hskn
 * @since 2021-05-04
 */
public interface ISysMenuService extends IService<SysMenu> {
    AjaxResult insert(JSONObject params) throws HssException;

    AjaxResult deleteByid(JSONObject params) throws HssException;

    AjaxResult update(JSONObject params) throws HssException;

    SysMenu getInfoById(JSONObject params) throws HssException;

    List<SysMenu> getListByMap(JSONObject params) throws HssException;

    JSONObject getList(JSONObject params) throws HssException;

    List<SysMenu> getMenuListByUserid(String uid) throws HssException;

    List<MenuTreeEntity> getTreeList();

    List<SysMenu> selectList(Wrapper<SysMenu> queryWrapper);

    Map<String,SysMenu> getSysMenuMap(Wrapper<SysMenu> queryWrapper);
}
